<template>
  <div class="some-card">
    <p class="main-title">main-title16</p>
    <p class="sub-title">sub-title14</p>
    <a class="text">12121212121212121212121212121212121212</a>
    <strong class="kzg"
      >卡兹格卡兹格卡兹格卡兹格卡兹格卡兹格卡兹格卡兹格</strong
    >
  </div>
</template>

<script lang="ts" setup></script>

<style lang="less" scoped>
.some-card {
  font-size: 1rem;
  border: 1px solid #666;
  width: 100%;
  margin-bottom: 0.5em;
  border-radius: 0.25em;
  padding: 0.5em;
  .main-title {
    font-size: var(--font-default);
  }
  .sub-title {
    font-size: var(--font-small);
  }
  .text {
    font-size: var(--font-mini);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath fill='none' stroke='%23ff3300' d='M0 3.5c5 0 5-3 10-3s5 3 10 3 5-3 10-3 5 3 10 3'/%3E%3C/svg%3E")
      repeat-x 0 100%;
    background-size: 20px auto;
    text-decoration: none;
    &:hover {
      animation: waveMove 1s infinite linear;
    }
  }
  .kzg {
    font-family: Helvetica;
    font-size: 40px;
    font-weight: 700;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone;

    background-image: linear-gradient(
      90deg,
      #009e77,
      #0099c0,
      #027fff,
      #5856d6
    );

    background-position-x: -110%;
    &:hover {
      animation: waveMove 1s infinite linear;
      background-image: linear-gradient(
        90deg,
        rgb(112, 43, 252) 0%,
        rgb(242, 59, 255) 100%,
        rgb(255, 112, 118) 200%,
        rgb(29, 29, 31) 300%
      );
    }
  }
}

@keyframes waveMove {
  0% {
    background-position: 0 100%;
  }
  100% {
    background-position: 400px 100%;
  }
}
</style>
